package com.flyco.modules.oms.vo;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.modules.oms.entity.OmsElemeRetailOrder;
import com.flyco.modules.oms.entity.OmsElemeGoodsItem;
import lombok.Data;
import com.flyco.poi.excel.annotation.Excel;
import com.flyco.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * @Description: 饿了么订单表
 * @Author: flyco
 * @Date:   2021-08-10
 * @Version: V1.0
 */
@Data
@ApiModel(value="oms_eleme_retail_orderPage对象", description="饿了么订单表")
public class OmsElemeRetailOrderPage {

	/**序号*/
	@Excel(name = "序号", width = 15)
	@TableField(exist = false)
	private String num;

	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
	private String id;
	/**订单来源*/
  	@Excel(name = "订单来源", width = 15)
	private String orderSourceTag;
	/**饿了么订单编号*/
  	@Excel(name = "饿了么订单编号", width = 15)
	private String elemeId;
	/**城市*/
  	@Excel(name = "城市", width = 15)
	private String provinceCity;
	/**商户名称*/
  	@Excel(name = "商户名称", width = 15)
	private String shopName;
	/**商户ID*/
  	@Excel(name = "商户ID", width = 15)
	private Long shopId;
	/**配送方式*/
  	@Excel(name = "配送方式", width = 15)
	private String deliveryType;
	/**订单业务类型(0外卖单,1到店自取订单,2企业到店买单)*/
	@Excel(name = "订单类型", width = 15,replace={"外卖订单_0","自提订单_1","企业到店买单_2"})
	private Integer orderBusinessType;
	/**订单状态*/
  	@Excel(name = "订单状态", width = 15)
	private String status;
	/**退款状态*/
  	@Excel(name = "退款状态", width = 15)
	private String refundStatus;
	/**订单无效理由*/
  	@Excel(name = "订单无效理由", width = 15)
	private String cancelOrderDescription;
	/**下单时间*/
  	@Excel(name = "下单时间", width = 20, format = "yyyy年MM月dd日 HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createdAt;

	/**预计送达时间*/
	@Excel(name = "预计送达时间", width = 20)
	@TableField(exist = false)
	private String deliverTimeStr;
	/**预计送达时间*/
  	//@Excel(name = "预计送达时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date deliverTime;
	/**商户接单时间*/
  	@Excel(name = "商户接单时间", width = 15)
	private String shopReceiveTime;
	/**订单完成时间*/
  	@Excel(name = "订单完成时间", width = 15)
	private String completionTime;
	/**订单总金额*/
  	@Excel(name = "订单总金额", width = 15)
	private java.math.BigDecimal originalPrice;
	/**用户实付金额*/
  	@Excel(name = "用户实付金额", width = 15)
	private java.math.BigDecimal totalPrice;
	/**商户应收金额*/
  	@Excel(name = "商户应收金额", width = 15)
	private java.math.BigDecimal income;
	/**平台佣金*/
  	@Excel(name = "平台佣金", width = 15)
	private java.math.BigDecimal serviceFee;
	/**索赔状态*/
  	@Excel(name = "索赔状态", width = 15)
	private String claimStatus;
	/**创建人*/
	private String createBy;
	/**创建时间*/
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
	private String updateBy;
	/**更新时间*/
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;

	@ExcelCollection(name="饿了么订单明细")
	@ApiModelProperty(value = "饿了么订单明细")
	private List<OmsElemeGoodsItem> omsElemeGoodsItemList;
	
}
